package com.chaosj.memory;

import com.chaosj.memory.command.CustomPromptProvider;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @className: ScrapeApplication
 * @description:
 * @author: caoyangjie
 * @date: 2022/3/21
 **/
@SpringBootApplication
public class ScrapeApplication {
    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(ScrapeApplication.class);
        app.setBannerMode(Banner.Mode.OFF);
        app.setWebApplicationType(WebApplicationType.NONE);
        app.run(args);
    }

    @Bean
    public CustomPromptProvider customPromptProvider(){
        return new CustomPromptProvider();
    }
}
